---
title: "SQL-008: Get policy address by location sequence number"
summary: Retrieve a policy address by location sequence number.
status: draft
owner: SAIF Corporation
last_reviewed: 2026-08-21
library: SAIF.Business.View.Policy
reference_type: embedded
---

# SQL-008 Get policy address by location sequence number

Retrieve a policy address by location sequence number.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-008 |
| **Operation type** | Read |
| **Execution method** | Stored procedure |
| **Database** | Oracle |
| **Schema** | `[unqualified]**` |
| **Command type** | StoredProcedure |
| **Business object** | `clsPolicyAddress` |
| **Criteria property** | `RetrieveAddressByLocationSeqNum` |
| **Lifecycle method** | `BeforeRetrieve` (location-seq branch) |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:inLocationSeqNum` | Input | Decimal | N/A | Location sequence number |
| `recordset` | Output (Cursor) | REF CURSOR | N/A | Address row |

## Tables

N/A — Stored procedure

## Sample SQL

```sql
-- Oracle stored procedure call (CommandType.StoredProcedure)
-- clsPolicyAddress.BeforeRetrieve (LocationSeqNum branch)
CALL pk72846_view_policy.getPolicyAddressByLocSeqNum(
  :inLocationSeqNum,
  :recordset)
```


## Operations and processes
- [Retrieve addresses](../operations-processes.md)

## Business rules
- [BR-VP-010: Demo users see masked data](../business-rules.md#br-vp-010-demo-users-see-masked-data)

## Sources
- `SAIF.Business.View.Policy/clsPolicyAddress.vb`
